﻿<%@ Page Title="Profil" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 
    CodeBehind="BenutzerProfil.aspx.cs" Inherits="ASV.Benutzer.BenutzerProfil" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <form id="Benutzerprofil" runat="server">    

        <!-- Form Name -->
        <h1>Profil bearbeiten</h1>
        <table>
            <tr>
                <td>
                    <!-- Text input-->
                    <div class="control-group" style="width:auto">
                      <label class="control-label" for="name">*Vorname</label>
                      <div class="controls">
                        <asp:TextBox id="NameID" style="width:250px" name="name" type="text" placeholder="" class="input-xlarge" runat="server"></asp:TextBox>
                      </div>
                    </div>
                </td>
                <td>
                    <div class="control-group" style="width:auto">
                      <label class="control-label" for="name">Passwort</label>
                      <div class="controls">
                        <asp:TextBox id="passwort" style="width:250px" name="name" TextMode="password" type="text" placeholder="" class="input-xlarge" runat="server"></asp:TextBox>
                      </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="control-group" style="width:auto">
                      <label class="control-label" for="name">*Nachname</label>
                      <div class="controls">
                        <asp:TextBox id="nachname" style="width:250px" name="name" type="text" placeholder="" class="input-xlarge" runat="server"></asp:TextBox>
                      </div>
                    </div>
                </td>
                <td>
                    <div class="control-group" style="width:auto">
                      <label class="control-label" for="name">Passwort wiederholen</label>
                      <div class="controls">
                        <asp:TextBox id="confPasswort" style="width:250px" name="name" TextMode="password" type="text" placeholder="" class="input-xlarge" runat="server"></asp:TextBox>
                      </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="control-group" style="width:auto">
                      <label class="control-label" for="name">*Email</label>
                      <div class="controls">
                        <asp:TextBox ID="eamilID" style="width:250px" runat="server"></asp:TextBox>

                        
                      </div>
                    </div>
                </td>
                <td style="text-align:left;color:red">
                      <asp:Label ID="confPass" runat="server" Visible="false">Bitte Passwort bestätigen!</asp:Label>
                        <br />
                      <asp:CompareValidator id="comparePasswords" 
                          runat="server"
                          ControlToCompare="passwort"
                          ControlToValidate="confPasswort"
                          ErrorMessage="Passwörter stimmen nicht überein!"
                          Display="Dynamic" />
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" style="width:250px" runat="server"
                                ControlToValidate="eamilID" ErrorMessage="Email wird benötigt"
                                SetFocusOnError="True" ></asp:RequiredFieldValidator>
                        <br />
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" style="width:250px" runat="server"
                                     ErrorMessage="Fehlerhafte Email" ControlToValidate="eamilID"
                                     SetFocusOnError="True"
                                     ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                        </asp:RegularExpressionValidator>
                        
                        
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div class="control-group" style="width:auto;text-align:left">
                      <div class="controls">
                         <asp:Button runat="server" style="width:530px"  id="AddButton" name="AddButton" class="btn btn-primary" Text="Ändern" OnClick="sendeAenderung" ></asp:Button>
                      </div>
                    </div>
                </td>
            </tr>
        </table>
             
        <asp:Table ID="ProdukteUser" class="table table-striped" runat="server">
            <asp:TableHeaderRow>
                <asp:TableHeaderCell ></asp:TableHeaderCell>
                <asp:TableHeaderCell >Name</asp:TableHeaderCell>
                <asp:TableHeaderCell >Typ</asp:TableHeaderCell>
                <asp:TableHeaderCell >Preis</asp:TableHeaderCell>
                <asp:TableHeaderCell >Version</asp:TableHeaderCell>
                <asp:TableHeaderCell >Produkt/Lizenz</asp:TableHeaderCell>
                <asp:TableHeaderCell >Bestelldatum</asp:TableHeaderCell>
                <asp:TableHeaderCell ></asp:TableHeaderCell>
            </asp:TableHeaderRow>
        </asp:Table>
    </form>
</asp:Content>